my_dict = {'key1':'value1','key2':'value2'}

value1 = my_dict['key1']
print(value1)

value2 = my_dict.get('key2')
print(value2)

value3 = my_dict.get('key3','没有数据')
print(value3)